package cn.hznc.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Getter;
import lombok.Setter;

/**
 * @Author：Administrator
 * @Date：2023/4/3 10:41
 */
@Getter
@Setter
@Table(name = "t_warehouse_item")
@TableName(value = "t_warehouse_item")
public class WarehouseItemEntity{
    /**
     * 主键
     */
    @Column(name = "id",type = MySqlTypeConstant.INT,length = 11,isKey = true,isAutoIncrement = true)
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 仓库类型名称
     */
    @Column(name = "type_name", type = MySqlTypeConstant.VARCHAR, length = 255)
    @TableField(value = "type_name")
    private String typeName;

    /**
     * 仓库类型
     */
    @Column(name = "type", type = MySqlTypeConstant.VARCHAR, length = 500)
    @TableField(value = "type")
    private String type;

    /**
     * 父id
     */
    @Column(name = "p_id", type = MySqlTypeConstant.INT, length = 11)
    @TableField(value = "p_id")
    private String pId;

    /**
     * 货区仓库的总安全库存
     */
    @Column(name = "total_safety_capacity", type = MySqlTypeConstant.VARCHAR, length = 255)
    @TableField(value = "total_safety_capacity")
    private String totalSafetyCapacity;


}
